#pragma once

#include "../Position.h"
#include "CADCommand.h"

// CMoveCmd command target

class CMoveCmd : public CCADCommand
{
	DECLARE_DYNAMIC(CMoveCmd)
public:
	CMoveCmd();
	virtual ~CMoveCmd();

	inline void SetImage(CCADImage *pImage) { m_pImage = pImage; }
	int GetType();
	int	OnLButtonDown(CDC* pDC, UINT nFlags, const CPosition& pos);
	int	OnMouseMove(CDC* pDC, UINT nFlags, const CPosition& pos);
	int	OnRButtonDown(CDC* pDC, UINT nFlags, const CPosition& pos);

	int	Cancel(CDC* pDC);

private:
	CCADImage *m_pImage;
	CPosition m_basePos;
	CPosition m_desPos;
};


